#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    ui->label->setAlignment(Qt::AlignTop|Qt::AlignLeft);
    ui->label->setText("hello QT!!!hello zuoyi!!!");
    ui->label->setWordWrap(true);
    ui->label->setIndent(50);
//    ui->label->setStyleSheet("border: 2px solid black;");

    ui->label_2->setAlignment(Qt::AlignVCenter);
    ui->label_2->setText("hello Linux!!!");
//    ui->label_2->setIndent(60);
    ui->label_2->setMargin(0);

    ui->label_3->setAlignment(Qt::AlignBottom|Qt::AlignCenter);
    ui->label_3->setText("hello C++!!!hello world!!!");
    ui->label_3->setWordWrap(true);
    ui->label_3->setIndent(50);
}

Widget::~Widget()
{
    delete ui;
}

